<?php
class catalogLib
{
	/**
	 * @var catalogMod
	 */
	private $catalogMod;
	
	function __construct()
	{
		$this->catalogMod=new catalogMod();
	}
	
	public function addCatalog($catalog,$contentId)
	{
		if(is_array($catalog))
		{
			$flag=true;
			foreach ($catalog as $v)
			{
				if(!$this->addCatalog($v, $contentId))
				{
					$flag=false;
					break;
				}
			}
			return $flag;
		}
		return false;
	}
}